<!DOCTYPE html>
<html>
  <head>
    <title>AI知识库系统</title>
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <%= csrf_meta_tags %>
    <%= csp_meta_tag %>

    <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
    <%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %>
  </head>

  <body>
    <% if notice %>
      <div class="toast toast-top toast-end">
      <div class="alert alert-success">
        <span><%= notice %></span>
      </div>
      </div>
    <% end %>

    <% if alert %>
      <div class="toast toast-top toast-end">
      <div class="alert alert-error">
        <span><%= alert %></span>
      </div>
      </div>
    <% end %>
    <%= yield %>
  </body>
</html>
